package com.mvc.service.impl;

import com.mvc.entity.OrderSnapshot;
import com.mvc.entity.OrderTransaction;
import com.mvc.mapper.OrderTransactionMapper;
import com.mvc.service.OrderTransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName OrderTransactionImpl
 * @Description TODO
 * @Author Gla
 * @Date 2021/12/2 11:38
 * @Version 1.0
 **/
@Service
public class OrderTransactionImpl implements OrderTransactionService {

    @Autowired
    private OrderTransactionMapper orderTransactionMapper;
    @Override
    public List<OrderTransaction> listSearch(Integer startRow, Integer limit, Integer order_no) {
        return orderTransactionMapper.listSearch(startRow,  limit,  order_no);
    }

    @Override
    public Integer getCount(Integer order_no) {
        return orderTransactionMapper.getCount(order_no);
    }
}
